#include "User.h"

User::User(const string &id, const string &name) {
    setUserId(id);
    setUserName(name);
}

User::~User() {
}

void User::setUserId(const string &id) {
    userId = id;
}

void User::setUserName(const string &name) {
    userId = name;
}

string User::getUserId() const {
    return userId;
}

string User::getUserName() const {
    return userName;
}

ostream &operator<<(ostream &output, const User &user) {
    output << "User ID:" << user.getUserId() << endl;
    output << "User Name:" << user.getUserName() << endl;
    return output;
}
istream &operator>>(istream &input, User &user) {
    input >> user.userId >> user.userName;
    return input;
}